/*
 * Copyright @2007-2008 by Infowarelab Webapps.
 */
package com.easyidea.its.util;

import java.util.Calendar;
import java.util.List;

/**
 * tld project constants.
 * 
 * HISTORY
 * 
 * @author jeecyhuang
 * @createtime Mar 19, 2009 11:10:57 AM
 * 
 */
public class ItsConstants {
	/** Date format style */
	public static final String FORMATE_STYLE_DATA_SHORT = "yyyy-MM-dd";

	public static final String FORMATE_STYLE_DATA_NO_SECOND = "yyyy-MM-dd HH:mm";

	public static final String FORMATE_STYLE_DATA_LONG = "yyyy-MM-dd HH:mm:ss";

	public static final int FIRST_DAY_IN_WEEK = Calendar.MONDAY;

	public static final int LAST_DAY_IN_WEEK = Calendar.SUNDAY;

	public static final String SUCCESS_MSG = "successMsg";
	/**
	 * session key: user information.
	 */
	public static final String SESSION_KEY_USER_INFO = "session.key.user";
	/**
	 * session key: originalurl.
	 */
	public static final String SESSION_KEY_ORIURL = "session.key.originalurl";
	/**
	 * session key: customer information.
	 */
	public static final String SESSION_KEY_TRACKLOG_INFO = "session.key.tracklog";
	public static final String SESSION_KEY_CAR_SEIZURE = "session.key.car.seizure";
	public static final String SESSION_KEY_STATISTICS_DTO = "session.key.statistics.dto";
	

	public static final String FILE_STORE_PATH = "file.store.path";

	public static final String FILE_SEPERATOR = "/";

	// ########################### path constants ####################

	/**
	 * static resource root path
	 */
	public static final String STATIC_PATH = "static";

	/**
	 * branding static resource root path
	 */
	public static final String BRANDING_STATIC_PATH = "branding";

	/**
	 * template root path
	 */
	public static final String TEMPLATE_PATH = "template";

	/**
	 * default style name
	 */
	public static final String STYLE_DEFAULT = "default";

	public static final int ORGANIZATION_ROOT_ID = -1;
	/**
	 * 
	 */
	private static List<String> allPermissionUrlList;

	public static List<String> getAllPermissionUrlList() {
		return allPermissionUrlList;
	}

	/**
	 * 
	 * @param allPermissionUrlList
	 */
	public static void setAllPermissionUrlList(List<String> allPermissionUrlList) {
		ItsConstants.allPermissionUrlList = allPermissionUrlList;
	}

	public static String[] getProvice() {
		String[] provices = { "浙", "京", "沪", "津", "渝", "冀", "晋", "蒙", "辽", "吉", "黑", "苏", "皖", "闽", "赣", "鲁", "豫", "鄂", "湘", "粤", "桂", "琼", "川", "贵",
				"滇", "藏", "陕", "甘", "宁", "青", "新", "港", "澳", "台" };
		return provices;
	}

}
